using Microsoft.EntityFrameworkCore;
using MVC.Models;

namespace MVC.Db
{
    public class DbDemoSoft1 : DbContext
    {
        public DbSet<Category> category {get;set;}
        public DbSet<Product> product {get;set;}

        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            var a = "server=.;database=Demo1;uid=sa;pwd=123456;";
            builder.UseSqlServer(a);
        }
    }
}